<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>">
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<link rel="stylesheet" type="text/css" href="css/style.css"/>
		<title>顶岗实习管理系统(学生版)</title>
	</head>
	<body>
		<div class="header_moible">
			顶岗实习管理系统(学生版)
		</div>
<div class="rightinfo rightinfo_mobile">
    <div class="tools">
       <form id="searchForm" class="form-search" action="news/moible_news_page_list.do" method="post">
    	<ul class="seachform1">
    			<li  onclick="history.go(-1)"><span><img src="images/fh.png" style="width: 20px;height: 20px;"/>返回</span></li>
		    	<li><input value="02" name="DeptCode" type="hidden">${departmentName } </li>
				<li><input name="Title" type="text" class="scinput1" value="" placeholder="输入通知标题" style="width: 120px;"></li>
				<li><input name="" type="button" id="btnSearch" class="scbtn" value="查询"></li>  
				<div class="clearfix"></div>
		</ul>	
		 <input type="hidden" name="pageNumber" value="1">
        </form>

  
      </div>
     
    <table class="tablelist tablelist_mobile">
    	<thead>
    	<tr>
    	<th>通知标题</th>
        <th>类型</th>
		<th>发布日期</th>
       <th>操作</th>
      </tr>
        </thead>
        <tbody>
			<c:forEach items="${newsList}" var="news" varStatus="status">
				<tr>
				<tr>
					<td>${news.title}</td>
					<td><c:if test="${news.deptCode == 00}">学校通知</c:if> <c:if
							test="${news.deptCode != 00}">院系通知</c:if></td>
					<td>${news.pubTime}</td>
					<td><a class="check" onclick="check('${news.id}');">查看</a>&nbsp;&nbsp;&nbsp;&nbsp; </td>
				</tr>
			</c:forEach>
		</tbody>
    </table>
   <div class="pagin">
    	<%@ include file="page.jsp"%>
    </div>
    </div>
    <script src="js/jquery-1.7.2.js"></script>
    <script src="layer/layer.js"></script>
    <script type="text/javascript">
	$('.tablelist tbody tr:odd').addClass('odd');
	$( "#btnSearch" ).on('click', function(e) {
		$("#searchForm").submit();
	});
	function GoToPage(toPage,totalPage) {
	    if(toPage<=0) return;
	    if(toPage>totalPage) return;
	    $("input[name='pageNumber']").val(toPage);
	    $("#searchForm").submit();
	};
	function  check(id) {
		layer.open({
  type: 2,
  closeBtn: 2,
  title: '查看通知',
  shadeClose: true,
  shade: 0.6,
  area: ['90%', '300px'],
  content: 'news/moible_news_check.do?id='+id,
 
});
	}
	</script>
</body>

</html>
